/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 故我
 * Date: 2023-04-12
 * Time: 21:14
 */
class PC {
    private CPU cpu;
    private HardDisk HD;

    public void setCPU(CPU c) {
        this.cpu = c;
    }

    public void setHardDisk(HardDisk h) {
        this.HD = h;
    }

    public void show() {
        System.out.println("CPU的速度 " + cpu.getSpeed());
        System.out.println("硬盘的容量 " + HD.getAmount());
    }


}
